var pageii = null;
var grid = null;
$(function() {
	var id = $("#itemId").val();
	grid = lyGrid({
		pagId : 'paging',
		l_column : [ {
			colkey : "stockid",
			name : "id",
			hide : true
		},{
			colkey : "matname",
			name : "物料名称",
		}, {
			colkey : "stmnum",
			name : "数量",
		},{
			colkey : "matid",
			name : "matid",
			hide : true
		}
		],
		jsonUrl : rootPath + '/product/getChild.shtml?id=' + id,
		dymCol:true,
		checkbox : true,
		checkValue: "matid",
		records: "list",
		totalPages: "pages",
		totalRecords: "total",
		pagecode: '10',
		pageNow : 'pageNum'
	});
});



